import java.util.Scanner;

public class demo07 {
    public static void main(String[] args) {
         int[] a=new int[10];
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个4-8位的数");
        int s=sc.nextInt();
        int b=0;
        boolean flag=true;
        while (s>0){
            a[b] =s%10;
            s=s/10;
        }
        for (int i=0;i<b/2;i++){
            if (a[i]!=a[b-1-i]){
                flag=false;
                break;
            }
        }
        if (flag){
            System.out.println("是回文数");
        }else{
            System.out.println("不是回文数");
        }
    }
}
